package com.course.model.mapper.redisson;

import com.course.model.entity.redisson.UserOrder;
import com.course.model.entity.redisson.UserOrderExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserOrderMapper {
    long countByExample(UserOrderExample example);

    int deleteByExample(UserOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserOrder record);

    int insertSelective(UserOrder record);

    List<UserOrder> selectByExample(UserOrderExample example);

    UserOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserOrder record, @Param("example") UserOrderExample example);

    int updateByExample(@Param("record") UserOrder record, @Param("example") UserOrderExample example);

    int updateByPrimaryKeySelective(UserOrder record);

    int updateByPrimaryKey(UserOrder record);

    int updateExpireOrder(@Param("orderNo") String orderNo, @Param("payStatus") Integer payStatus, @Param("finalStatus") Integer finalStatus);

}